source/stb/image/package.d(130,5): Error: `@safe` constructor `stb.image.Image.this` cannot call `@system` function `object.destroy!(true, MmFile).destroy` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/object.d(3453,6): `object.destroy!(true, MmFile).destroy` is declared here source/stb/image/package.d(138,46): Error: `data.ptr` cannot be used in `@safe` code, use `&data[0]` instead source/stb/image/package.d(151,12): Error: cast from `const(void)[]` to `Color[]` not allowed in safe code source/stb/image/package.d(217,29): Error: `@safe` function `stb.image.Image.saveToFile` cannot call `@system` function `stb.image.Image.save` source/stb/image/package.d(220,8): `stb.image.Image.save` is declared here source/stb/image/package.d(509,4): Error: cast from `void*` to `void[]*` not allowed in safe code source/stb/image/package.d(509,28): Error: pointer slicing not allowed in safe functions source/stb/image/package.d(526,31): Error: `@safe` function `stb.image.compress_for_stb_image_write` cannot call `@system` function `core.stdc.stdlib.malloc` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(158,9): `core.stdc.stdlib.malloc` is declared here source/stb/image/package.d(526,13): Error: cast from `void*` to `ubyte*` not allowed in safe code source/stb/image/package.d(528,20): Error: cannot take address of local `dst` in `@safe` function `compress_for_stb_image_write` source/stb/package.d(10,31): Error: cannot take address of local `s` in `@safe` function `binarySearch` source/stb/package.d(12,18): Error: cannot take address of local `s` in `@safe` function `binarySearch` source/stb/rectpack/package.d(36,38): Error: `this._nodes.ptr` cannot be used in `@safe` code, use `&this._nodes[0]` instead source/stb/rectpack/package.d(37,40): Error: `this._rects.ptr` cannot be used in `@safe` code, use `&this._rects[0]` instead source/utils/binary/readers.d(11,21): Error: `data.ptr` cannot be used in `@safe` code, use `&data[0]` instead source/utils/binary/readers.d(12,10): Error: pointer arithmetic not allowed in @safe functions source/utils/binary/readers.d(22,11): Error: pointer slicing not allowed in safe functions source/utils/binary/readers.d(23,6): Error: pointer arithmetic not allowed in @safe functions source/utils/binary/readers.d(35,9): Error: pointer slicing not allowed in safe functions source/utils/binary/readers.d(36,6): Error: pointer arithmetic not allowed in @safe functions source/utils/binary/readers.d(46,24): Error: pointer arithmetic not allowed in @safe functions /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.